package com.daniel.cms.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 详细说明
 *
 * @author Daniel
 * @version V1.0
 * @date 2020/4/21 10:44
 */
@Data
@TableName("t_account")
@ApiModel
@Accessors(chain = true)
public class UserEntity extends BaseEntity {
	/**
	 * 账号
	 */
	@NotEmpty(message = "用户账号不能为空")
	private String account;
	/**
	 * 名称
	 */
	@NotEmpty(message = "用户名称不能为空")
	private String name;
	/**
	 * 密码
	 */
	@NotEmpty(message = "用户密码不能为空")
	@Size(min = 6, max = 11, message = "密码长度必须是6-16个字符")
	private String password;
	/**
	 * 密码
	 */
	private String rule;
	/**
	 * 邮箱
	 */
	@NotEmpty(message = "用户邮箱不能为空")
	@Email(message = "邮箱格式不正确")
	private String email;
	/**
	 * 电话
	 */
	private String phone;
	/**
	 * 角色
	 */
	private String roles;
	/**
	 * 介绍
	 */
	private String introduction;
	/**
	 * 头像
	 */
	private String avatar;
}
